
#encoding=gbk
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time


#h_options= Options()
ch_options= webdriver.ChromeOptions()
ch_options.add_argument('--headless')
# driver= webdriver.Chrome(executable_path='D:\\pythonglr\\python\\driver\\chromedriver')
#ch_options.page_load_strategy = 'eager'
driver= webdriver.Chrome(executable_path='D:\\pythonglr\\python\\driver\\chromedriver',options=ch_options)
driver.get('https://www.baidu.com')
#time.sleep(3)
print(driver.title)

print(driver.page_source[:200])
driver.quit()